<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-31j">
<title></title>
<link href="css/_default.css" rel="stylesheet" type="text/css" />
<SCRIPT type="text/javascript">

function na_open_window(param)
{
	
	var param2;
	var param3;
	var url;
	
	if (param == "SN")
	{
		param2 = document.getElementById("star").value;
		param3 = document.getElementById("star_naiyou").value;
		url ='http://localhost:8080/showbiz/talentPickupReg.action?talent_pickup_kubun=' + param
			+ '&talent_star=' + param2 + '&star_naiyou=' + param3;	
	}else{
		param2 = document.getElementById("pick").value;
		param3 = document.getElementById("pickup_naiyou").value;
		url ='http://localhost:8080/showbiz/talentPickupReg.action?talent_pickup_kubun=' + param 
			+ '&talent_pickup=' + param2 + '&pickup_naiyou=' + param3; 
	}
		
	var	toolbar_str = 'no';
	var menubar_str = 'no';
	var statusbar_str = 'no';
	var scrollbar_str = 'no';
	var resizable_str = 'no';
	
	window.open(url, 'PickUp設定', 'left='+0+',top='+0+',width='+600+',height='+500+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollerbars='+scrollbar_str+',resizable='+resizable_str);
}

function window_close(){
	this.close();
}
</SCRIPT>
</head>
<body>
<s:form method="post" id="pickup">
	<center>
	<table class="maincontent">
		<tr>
			<td class="talpickuptdtitle talpickuptdtitle1">区分</td>
			<td class="talpickuptdtitle talpickuptdtitle2">タレント名</td>
			<td class="talpickuptdtitle talpickuptdtitle3">分野</td>
			<td class="talpickuptdtitle talpickuptdtitle4">更新日</td>
		</tr>
		<s:iterator value="pickupBean">
		<tr>
			<td class="talpickuptd talpickuptd1"><s:property value="kubun" /></td>
			<td class="talpickuptd talpickuptd2">&nbsp;<s:property value="talent_kana" /></td>
			<td class="talpickuptd talpickuptd3"><s:property value="bunya_name" /></td>
			<td class="talpickuptd talpickuptd4"><s:property value="upd_date" /></td>
		</tr>
		</s:iterator>
	</table>
	<p />
	<table class="maincontent" >
		<tr>
			<td>Showbizmobile New STAR</td>
			<td>タレント名</td>
			<td><s:select id="star" name="talent_star" list="talentBean" headerKey="" headerValue="---選択 ---"
				listValue="talent_kana" listKey="talent_id" />
			</td>
			<td><input type="button" value="登録" onclick="javascript:na_open_window('SN');" class="btnSearch" ></td>
		</tr>
		<tr><td colspan="4"><s:textarea name="" id="star_naiyou" rows="5" cssStyle="width: 100%"></s:textarea></td></tr>
		<tr><td colspan="4">&nbsp;</td></tr>
		<tr>
			<td>Showbizmobile PICKUP</td>
			<td>タレント名</td>
			<td><s:select id="pick" name="talent_pickup" list="talentBean" headerKey="" headerValue="---選択 ---"
				listValue="talent_kana" listKey="talent_id" /></td>
			<td><input type="button" value="登録"  onclick="javascript:na_open_window('SP');" class="btnSearch"></td>
		</tr>
		<tr><td colspan="4"><s:textarea name="" id="pickup_naiyou" rows="5" cssStyle="width: 100%"></s:textarea></td></tr>
	</table>
	<s:actionerror/>
	<p />
	<input type="button" value="閉じる"  onclick="javascript:window_close();" class="btnDefault">
	</center>
</s:form>
</body>
</html>